package jcataloger.beans;

import java.io.File;

/**
 * This class is used for storing the returned data from a search result.<br>
 * These are disk name, file name, file path in the disk, if file is directory or file, length of the file and <br>
 * extension of the file.
 * @author sekobey
 *
 */
public class SearchResultBean {
	
	private String diskName;
	private String fileName;
	private String path;
	private String type;
	private String length;
	private String extension;

	/**
	 * creates result object
	 * @param diskName the name of the disk that contains the found file.
	 * @param fileName the name of the found file.
	 * @param path path of the found file in the disk.
	 * @param type if the found file is a file or directory.
	 * @param length length of the found file.
	 * @param extension extension of the found file.
	 */
	public SearchResultBean(String diskName, String fileName, String path, String type, String length, String extension) {
		setDiskName( diskName );
		setFileName( fileName );
		setPath( path );
		setType( type );
		setLength(length);
		setExtension(extension);
	}

	public String getDiskName() {
		return diskName;
	}

	public void setDiskName(String diskName) {
		this.diskName = diskName;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getExtension() {
		return extension;
	}

	public void setExtension(String extension) {
		this.extension = extension;
	}

	public String getLength() {
		return length;
	}

	public void setLength(String length) {
		this.length = length;
	}

	
	
}
